import req from './request.js'

export const list = (param) => {
    return req.get('/api/ssl/list', {params: param})
}

export const add = (param, header) => {
    return req.post('/api/ssl/add', param, {headers: header})
}

export const update = (param, header) => {
    return req.post('/api/ssl/update', param, {headers: header})
}

export const deleteByName = (name) => {
    return req.post('/api/ssl/delete', {name})
}

export const get = (name) => {
    return req.get('/api/ssl/get', {params: {name}})
}